.class Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;
.super Landroid/widget/BaseAdapter;
.source "ChangeDetailActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/teewoo/app/bus/ui/ChangeDetailActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "MyAdapter"
.end annotation


# instance fields
.field inflater:Landroid/view/LayoutInflater;

.field final synthetic this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;


# direct methods
.method public constructor <init>(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;Landroid/content/Context;)V
    .locals 1
    .parameter
    .parameter "ctx"

    .prologue
    .line 165
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    .line 163
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 164
    invoke-static {p2}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->inflater:Landroid/view/LayoutInflater;

    return-void
.end method


# virtual methods
.method public getCount()I
    .locals 1

    .prologue
    .line 168
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->access$1(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1
    .parameter "position"

    .prologue
    .line 172
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->access$1(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2
    .parameter "position"

    .prologue
    .line 176
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 9
    .parameter "position"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 180
    const/4 v5, 0x0

    .line 181
    .local v5, view:Landroid/view/View;
    if-nez p2, :cond_0

    .line 182
    iget-object v6, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->inflater:Landroid/view/LayoutInflater;

    const v7, 0x7f030003

    const/4 v8, 0x0

    invoke-virtual {v6, v7, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v5

    .line 185
    :goto_0
    const v6, 0x7f0a0003

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 186
    .local v1, lineDirText:Landroid/widget/TextView;
    const v6, 0x7f0a0004

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 187
    .local v3, onStaText:Landroid/widget/TextView;
    const v6, 0x7f0a0006

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 188
    .local v2, offStaText:Landroid/widget/TextView;
    const v6, 0x7f0a0005

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 189
    .local v4, staNoText:Landroid/widget/TextView;
    const v6, 0x7f0a0007

    invoke-virtual {v5, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 191
    .local v0, distanceText:Landroid/widget/TextView;
    iget-object v6, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-static {v6}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->access$1(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/teewoo/app/bus/model/Section;

    invoke-virtual {v6}, Lcom/teewoo/app/bus/model/Section;->getLine()Lcom/teewoo/app/bus/model/Line;

    move-result-object v6

    invoke-virtual {v6}, Lcom/teewoo/app/bus/model/Line;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 192
    new-instance v7, Ljava/lang/StringBuilder;

    const-string v6, "\u4ece\uff1a"

    invoke-direct {v7, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-static {v6}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->access$1(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/teewoo/app/bus/model/Section;

    invoke-virtual {v6}, Lcom/teewoo/app/bus/model/Section;->getOnStation()Lcom/teewoo/app/bus/model/Station;

    move-result-object v6

    invoke-virtual {v6}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "\u4e0a\u8f66"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 193
    new-instance v7, Ljava/lang/StringBuilder;

    const-string v6, "\u5728\uff1a"

    invoke-direct {v7, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-static {v6}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->access$1(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/teewoo/app/bus/model/Section;

    invoke-virtual {v6}, Lcom/teewoo/app/bus/model/Section;->getOffStation()Lcom/teewoo/app/bus/model/Station;

    move-result-object v6

    invoke-virtual {v6}, Lcom/teewoo/app/bus/model/Station;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "\u4e0b\u8f66"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 194
    new-instance v7, Ljava/lang/StringBuilder;

    const-string v6, "\u9014\u7ecf \uff1a"

    invoke-direct {v7, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-static {v6}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->access$1(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/util/List;

    move-result-object v6

    invoke-interface {v6, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/teewoo/app/bus/model/Section;

    invoke-virtual {v6}, Lcom/teewoo/app/bus/model/Section;->getStationNo()Ljava/lang/Integer;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "\u7ad9"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 195
    new-instance v6, Ljava/lang/StringBuilder;

    const-string v7, "\u8f66\u7a0b\uff1a"

    invoke-direct {v6, v7}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v7, p0, Lcom/teewoo/app/bus/ui/ChangeDetailActivity$MyAdapter;->this$0:Lcom/teewoo/app/bus/ui/ChangeDetailActivity;

    invoke-static {v7}, Lcom/teewoo/app/bus/ui/ChangeDetailActivity;->access$1(Lcom/teewoo/app/bus/ui/ChangeDetailActivity;)Ljava/util/List;

    move-result-object v7

    invoke-interface {v7, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/teewoo/app/bus/model/Section;

    invoke-virtual {p0}, Lcom/teewoo/app/bus/model/Section;->getDistance()Ljava/lang/Double;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "\u516c\u91cc"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v0, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 196
    return-object v5

    .line 184
    .end local v0           #distanceText:Landroid/widget/TextView;
    .end local v1           #lineDirText:Landroid/widget/TextView;
    .end local v2           #offStaText:Landroid/widget/TextView;
    .end local v3           #onStaText:Landroid/widget/TextView;
    .end local v4           #staNoText:Landroid/widget/TextView;
    .restart local p0
    :cond_0
    move-object v5, p2

    goto/16 :goto_0
.end method
